class HomeBannerResult {
  String message;
  String code;
  bool success;
  List<EntityListBean> entity;

  HomeBannerResult({this.message, this.code, this.success, this.entity});

  HomeBannerResult.fromJson(Map<String, dynamic> json) {    
    this.message = json['message'];
    this.code = json['code'];
    this.success = json['success'];
    this.entity = (json['entity'] as List)!=null?(json['entity'] as List).map((i) => EntityListBean.fromJson(i)).toList():null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['message'] = this.message;
    data['code'] = this.code;
    data['success'] = this.success;
    data['entity'] = this.entity != null?this.entity.map((i) => i.toJson()).toList():null;
    return data;
  }

}

class EntityListBean {
  String imagesUrl;
  String mobileImagesUrl;
  String linkAddress;
  String title;
  String bgImagesUrl;
  String activityId;
  String keyWord;
  String color;
  String previewUrl;
  bool isShow;
  int id;
  int seriesNumber;
  int imageUsageId;

  EntityListBean({this.imagesUrl, this.mobileImagesUrl, this.linkAddress, this.title, this.bgImagesUrl, this.activityId, this.keyWord, this.color, this.previewUrl, this.isShow, this.id, this.seriesNumber, this.imageUsageId});

  EntityListBean.fromJson(Map<String, dynamic> json) {    
    this.imagesUrl = json['imagesUrl'];
    this.mobileImagesUrl = json['mobileImagesUrl'];
    this.linkAddress = json['linkAddress'];
    this.title = json['title'];
    this.bgImagesUrl = json['bgImagesUrl'];
    this.activityId = json['activity_id'];
    this.keyWord = json['keyWord'];
    this.color = json['color'];
    this.previewUrl = json['previewUrl'];
    this.isShow = json['isShow'];
    this.id = json['id'];
    this.seriesNumber = json['seriesNumber'];
    this.imageUsageId = json['imageUsageId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['imagesUrl'] = this.imagesUrl;
    data['mobileImagesUrl'] = this.mobileImagesUrl;
    data['linkAddress'] = this.linkAddress;
    data['title'] = this.title;
    data['bgImagesUrl'] = this.bgImagesUrl;
    data['activity_id'] = this.activityId;
    data['keyWord'] = this.keyWord;
    data['color'] = this.color;
    data['previewUrl'] = this.previewUrl;
    data['isShow'] = this.isShow;
    data['id'] = this.id;
    data['seriesNumber'] = this.seriesNumber;
    data['imageUsageId'] = this.imageUsageId;
    return data;
  }
}
